package com.game.client;

import com.game.share.IOPackage;
import com.game.share.RPCCallback;

public class StatedCallback implements RPCCallback {

	private boolean isBack = false;

	private IOPackage result;

	public boolean isBack() {
		return isBack;
	}

	public IOPackage getResult() {
		return result;
	}

	@Override
	public void onSuccess(IOPackage result) {
		System.out.println("receive result");
		this.result = result;
		isBack = true;
	}

}
